{% extends "user/layout.njk" %}

{% block css %}
  <link rel='stylesheet' href='/user/css/post.css'/>
  <link rel='stylesheet' href='/user/css/markdown.css'/>
{% endblock %}

{% block main %}
  <div class="QRCode-wrap"></div>
  <div class="wrap">
    <header>
      <h1>{{ data.title }}</h1>
    </header>
    <article>
      <div class="content markdown-body">{{ data.htmlContent | safe }}</div>
      <p class="donate">支持一下<span>支付宝<img src="/user/ali_pay.png"></span><span>微信<img src="/user/wechat_pay.png"></span></p>
      <div class="post-meta">
        <a href="/category/{{ data.category }}">{{ data.category }}</a>
        <br>
        <time>{{ data.releaseDate }}</time>
      </div>
    </article>
  </div>
{% endblock %}